-- GENERATED SPELL FOR [Feralfen Druid] --


function spell0_20270(pUnit, Event) --@Regrowth,n/a--
pUnit:FullCastSpellOnTarget(16561,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20270', 23000, 1)
end

function spell1_20270(pUnit, Event) --@Roc Form,Self--
pUnit:FullCastSpellOnTarget(35200,pUnit)
pUnit:RegisterEvent('Sorts_20270', 0, 1)
end

function Sorts_20270(pUnit, Event)
local choix_sorts_20270 = math.random(0, 1)
if choix_sorts_20270 == 0 then
pUnit:RegisterEvent('spell0_20270', 1, 1)
end
if choix_sorts_20270 == 1 then
pUnit:RegisterEvent('spell1_20270', 1, 1)
end
end

function mob20270_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20270', math.random(1500, 3000), 1)
end

function mob20270_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20270_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20270_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20270, 1, 'mob20270_Action')
RegisterUnitEvent(20270, 2, 'mob20270_Leave')
RegisterUnitEvent(20270, 3, 'mob20270_Kill')
RegisterUnitEvent(20270, 4, 'mob20270_Die')
